from rest_framework.serializers import ModelSerializer

from .models import *

from rest_framework import serializers

class NewSer(ModelSerializer):
    # 自定义表名
    class Meta:
        model=New
        fields='__all__'

class advertisiSer(ModelSerializer):
    # 自定义表名
    class Meta:
        model=advertising
        fields='__all__'
